package com.eddie.responsibilitychain;

import lombok.Getter;

/**
 * 请求（在该案例中需要使用）
 * @author Eddie
 * @date 2022/08/08 15:43
 **/
@Getter
public class PurchaseRequest {
    /**
     * 请求类型
     */
    private int type = 0;

    /**
     * 请求的金额
     */
    private float price = 0.0f;

    private int id = 0;

    public PurchaseRequest(int type, float price, int id) {
        this.type = type;
        this.price = price;
        this.id = id;
    }


}
